﻿#ifndef READONLYDELEGATE_H
#define READONLYDELEGATE_H

#include <QItemDelegate>

class ReadOnlyDelegate : public QItemDelegate
{
    Q_OBJECT
public:
    explicit ReadOnlyDelegate(QObject *parent = nullptr);

    QWidget *createEditor(QWidget *parent,
                          const QStyleOptionViewItem &option,
                          const QModelIndex &index) const Q_DECL_OVERRIDE{
        Q_UNUSED(parent);
        Q_UNUSED(option);
        Q_UNUSED(index);

        return nullptr;
    }
signals:

public slots:
};

#endif // READONLYDELEGATE_H
